namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_STATION")]
    public partial class PUB_STATION
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_STATION()
        {
            CONTRACT_MONTH = new HashSet<CONTRACT_MONTH>();
            CONTRACT_MONTH1 = new HashSet<CONTRACT_MONTH>();
            PLAN_PURCHASE_DETAIL = new HashSet<PLAN_PURCHASE_DETAIL>();
            PLAN_PURCHASE_DETAIL1 = new HashSet<PLAN_PURCHASE_DETAIL>();
            PLAN_TEMPPURCHASEDETAIL = new HashSet<PLAN_TEMPPURCHASEDETAIL>();
            PLAN_TEMPPURCHASEDETAIL1 = new HashSet<PLAN_TEMPPURCHASEDETAIL>();
        }

        [Key]
        [StringLength(40)]
        public string STATION_ID { get; set; }

        [Required]
        [StringLength(50)]
        public string STATION_NAME { get; set; }

        [StringLength(20)]
        public string KKSCODE { get; set; }

        [StringLength(200)]
        public string REMARKS { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CONTRACT_MONTH> CONTRACT_MONTH { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CONTRACT_MONTH> CONTRACT_MONTH1 { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_PURCHASE_DETAIL> PLAN_PURCHASE_DETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_PURCHASE_DETAIL> PLAN_PURCHASE_DETAIL1 { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_TEMPPURCHASEDETAIL> PLAN_TEMPPURCHASEDETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_TEMPPURCHASEDETAIL> PLAN_TEMPPURCHASEDETAIL1 { get; set; }
    }
}
